package com.hyfrogx.modules.manage.dao.role;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyfrogx.modules.manage.entity.role.Role;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleDao extends BaseMapper<Role> {
    int deleteByPrimaryKey(Integer rid);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer rid);

    int updateByPrimaryKeySelective(Role record);

	/**
	 * @return
	 */
	List<Role> findAll();

	Role load(Integer rid);

	/**
	 * @param grade
	 * @return
	 */
	String findByGrade(Integer grade);
}
